Jump to content

- Appendix A

- # Jira Service Integration - A.5 - Example: Check and Announce Status

  Followers 0

  VBScript Lua 1.1.0

  This example demonstrates the usage of the JiraServiceIntegration - Create Issue and AzureTTS (text-to-speech) GSE actions.

  You need to have the AzureTTS (text-to-speech) Open ECR Extension installed beside the Jira Service Integration.

  It asks for an issue id (close id with #), checks the status and announces its details.

  To install it:

  1. Open the Call Routing Manager of your desired SwyxWare user.
  2. Click the "New Rule..." button.
  3. Select "Graphical Script Editor" and click Ok.
  4. Within the GSE open the File | Import... menu and click No.
  5. From the download package select the following file:
     For VBScript usage:

         VBScript based\rse\Check and Announce Status.rse

     For Lua usage:

         Lua based\rse\Check and Announce Status.rse

  6. All needed configuration is done via GSE Rule Parameters directly in the Call Routing Manager.
     For all Jira... parameters please refer to Jira 3.1 - Create Issue for instructions.
     For all Azure... parameter please refer to AzureTTS 3.1 - Usage for instructions.
     EnterIssueID
     Name of the annoucement wav file to be played when you have to enter the Jira issue id.
     It should announce something like "Please enter your Jira Issue ID (the trailing number only) and finish with the # (hash) key."
     Default: beep.wav
     StatusAnnouncement
     The text of the status annoucement. You can make use of placeholders, to insert current values:
     #ID# - the complete issue id (ProjectKey-ID)
     #STATUS# - the current status of the issue
     #UPDATE# - the date/time of the latest modification of the issue
     Default: The current status of issue #ID# is #STATUS# and it was modified latest at #UPDATE#
     FailedAnnouncement
     Name of the announement wav file to be played if either the Jira or the Azure request fails.
     Please refer to Jira 3.4 - Trouble Shooting or AzureTTS 3.2 - Trouble Shooting for information on how to figure what went wrong in detail.
     Default: beep.wav
     Hint:
     It makes a lot of sense to use the AzureTTS (text-to-speech) extension once to create the annoucement files for EnterIssueID and FailedAnnouncement. This ensures that the entire call routing uses the same voice.
     To do so, just use the A.1 - Example: Announce Text example and use an Insert Script Code block right behind the Played exit to copy the generated temporary wav file to a permanent location.
     This only works with the VBScript version of the extension.

         Dim fso
         Set fso = CreateObject("Scripting.FileSystemObject")
         fso.CopyFile g_sAzureTTS_LatestWavFile, "C:\MyFiles\"
         Set fso = Nothing
         UseExit = 0

  By Tom Wellige

  - September 6, 2024
  Share
  Share
  Followers 0
  Previous Page A.4 - Example: Check Status and Add Comment

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.